/*
 * =====================================================================================
 *
 *       Filename:  monitoring_screen.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  10/03/2010 01:28:46 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ziliang), zlchen.ken@gmail.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include <unistd.h>
#include "monitoring_screen.h"
#include "observer_factory.h"
#include "observer.h"

MonitoringScreen::MonitoringScreen( WSComponent* wsc ) 
	: itsWSC( wsc )
{
  itsWSC->addTempObserver( ObserverFactory::instance->createTempObserver() );
  itsWSC->addBPObserver( ObserverFactory::instance->createBPObserver() );
  itsWSC->addBPTObserver( ObserverFactory::instance->createBPTObserver() );
}


void MonitoringScreen::run( void )
{
  for(;;)
	{
		// message Q
		sleep( 10 );
	}
}

